<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var arr = [1, 2, 3, 60]

        function has(arr,b){
        var f=false
        for(var i=0;i<arr.length;i++){
            if( arr[i]===b){
                f=true
                break
            }
        }
        return f
    }
    has(arr,60)
    console.log(has(arr,60))

    </script>
</body>
</html>